package 实习刷题.必刷TOP101.Month12.day02;

public class 链表_BM1 {
    public ListNode ReverseList(ListNode head) {
        ListNode slow = null;
        while(head.next != null){
            ListNode fast = head.next;
            head.next = slow;
            slow = head;
            head = fast;
        }
        return head;
    }
}
